package com.zjuh.goodboy.items;

import java.io.Serializable;

import com.zjuh.sweet.codec.MD5;

public class Item implements Serializable {
	
	private static final long serialVersionUID = 8167028130767471192L;

	private long id;
	
	private String siteName;
	
	private String url;
	
	private String name;
	
	private String imgUrl;
	
	private String description;
	
	public String getToken() {
		return MD5.encrypt(url);
	}

	@Override
	public String toString() {
		return "Item [description=" + description + ", imgUrl=" + imgUrl
				+ ", name=" + name + ", siteName=" + siteName + ", url=" + url + "]";
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getSiteName() {
		return siteName;
	}

	public void setSiteName(String siteName) {
		this.siteName = siteName;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

}
